﻿@using Openapi.Weibo;
@if(Request.IsAuthenticated) {
    <text>Hello, <strong>@ViewBag.UserName</strong></text>
}
else {
    //@Client.GetAuthorizeURI(ResponseType.Token,null,DisplayDevice.JS)
    <a id="logonlink" href="javascript:;" onclick="connection('@OAuthAuthorization.GetAuthorizeURI(ResponseType.Code)')">
      <img src="/Images/wbutton240.png" alt="微博登录" />
    </a>
}
